package org.rency.ues.domain.response;

import org.rency.common.utils.domain.BaseResult;
import org.rency.ues.common.UesDict;

/**
 * 加签响应
 *
 * @author: Created by user_rcy@163.com on 2016/08/31.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class SignResponse extends BaseResult {

    private String signData;

    public String getSignData() {
        return signData;
    }

    public void setSignData(String signData) {
        this.signData = signData;
    }

    public static SignResponse success(){
        SignResponse resp = new SignResponse();
        resp.setSuccess(true);
        resp.setReturnMessage(UesDict.CHINESE_SUCCESS_MSG);
        return resp;
    }

    public static SignResponse success(String signData){
        SignResponse resp = new SignResponse();
        resp.setSuccess(true);
        resp.setReturnMessage(UesDict.CHINESE_SUCCESS_MSG);
        resp.setSignData(signData);
        return resp;
    }

    public static SignResponse fail(String returnMessage){
        SignResponse resp = new SignResponse();
        resp.setSuccess(false);
        resp.setReturnMessage(returnMessage);
        return resp;
    }
}
